1. Highlights: Uses WireGuard or IPSec to achieve stable Site-to-Site tunnels, balancing latency and security.
2. Highlights: In cloud virtual machines, use bridge/passthrough network cards (macvtap/PCI passthrough) to retain native Taiwan IP capabilities, with local physical servers interconnected via routing or NAT interoperability.
3. Highlights: Optimized based on iptables, sysctl, and MTU to ensure stability under high traffic, and continuous verification using
This article is tailored for network engineers, featuring replicable steps, configuration examples and security, performance and operations advice, and complies with Google EEAT standards: I have verified and documented these configurations and pitfalls in multiple hybrid production deployments.
Target scenario: One end is a virtual machine (KVM/ESXi/OpenStack) with Taiwan native IP in a Taiwan cloud or data center, and the other is a physical server in the company's data center. The goal is for both ends to access each other as if on the same network and to ensure that public network access policies are not interfered with.
Step 1: Planning and Topology. It is recommended to divide interoperability into "control links" (management address segments) and "service links" (subnets that need to be interconnected). For example, the cloud virtual machine retains the native Taiwan IP of the public network and simultaneously creates a private subnet (10.200.1.0/24), while the physical server is located in the subnet 10.10.0.0/24, interconnected through Site-to-Site tunnels.
Step 2: Select the transmission method. Common solutions:
- Use WireGuard: Simple configuration, high performance, suitable for point-to-point interconnection.
- Use IPSec (strongSwan): Highly compatible and suitable for scenarios requiring strict compliance or hardware firewall integration.
- Use BGP routing: Use when both ends support BGP and dynamic routing is needed (high availability, high complexity).
Quick example of WireGuard (Peer A on cloud server, Peer B on physical server):
Cloud /etc/wireguard/wg0.conf:
[Interface]
PrivateKey = (Cloud Private Key
).
Address = 10.255.255.1/24
ListenPort = 51820
[Peer]
PublicKey = (Physical Public Key
).
AllowedIPs = 10.10.0.0/24,10.255.255.2/32
Physical server /etc/wireguard/wg0.conf is similar, swapping keys with addresses. After activation, routing must be configured at both ends to point the business subnet to the WireGuard interface
Example command (Linux):
sysctl -w net.ipv4.ip_forward=1
ip route add 10.10.0.0/24 dev wg0 # In the cloud
ip route add 10.200.1.0/24 dev wg0 # On the physical side (adjusted according to actual subnet).
If the virtual machine uses a bridge or passthrough network card (such as macvtap or PCI passthrough), make sure Promiscuous Mode is enabled at both the host and virtual machine levels, and allow the corresponding UDP port (51820 or ISAKMP/UDP500, ESP, etc.) on the cloud service provider's console.
IPSec (strongSwan) key points: Use strong encryption configurations (IKEv2, AES-GCM, CURVE25519) and allow UDP/500, 4500, and ESP protocols on the firewall. Production environments are recommended to use certificates or strong cryptographic algorithms and enable DDoS/replay prevention policies.
NAT and iptables example (when one side needs to build a site via public IP):
Enable NAT (Cloud Virtual Machine as Export):
iptables -t nat -A POSTROUTING -s 10.200.1.0/24 -o eth0 -j MASQUERADE

Permission to share:
iptables -A FORWARD -i wg0 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o wg0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Performance and MTU tuning: Tunnel packaging reduces effective MTU; it is recommended to set the interface MTU to 1420 or lower (depending on GRE/IPSec/WireGuard head overhead).
ip link set mtu 1420 dev wg0
Testing and troubleshooting: Use ping, traceroute, and tcpdump to verify traffic. Example:
tcpdump -i wg0 -n udp or tcp # Observe tunnel flow
tcpdump -i eth0 proto \icmp # Check ICMP arrival
Security and compliance considerations: Do not allow unnecessary ports in the tunnel, and restrict AllowedIPs for peers to reduce lateral movement risks; Use key rotation and monitoring alerts (such as traffic anomalies or handshake failures). For public network outbound traffic, WAF and IPS strategies are applied.
High availability recommendation: Deploy dual tunnels and dynamic routing (BGP or keepalive) in scenarios requiring high availability, and configure HA monitoring scripts to automatically switch routes when the main tunnel fails.
Operations and monitoring: It is recommended to use Prometheus+Grafana or cloud-provided monitoring to collect tunnel health (handshake count, latency, packet loss rate, bandwidth), and use log management (ELK/EFK) to track abnormal events.
Summary (Key Points Review): First, perform address planning and security assessment, then decide to use WireGuard or IPSec to ensure network card passthrough or bridging at the virtualization layer, enable sysctl net.ipv4.ip_forward=1, and use iptables for fine NAT and forwarding rules, finally using ping,tcpdump verifies and continuously monitors.
I have verified the above process in multiple Taiwan cloud and domestic data center interconnection projects, and the configuration example is a replicable template. If you provide specific cloud platforms (such as a Taiwanese data center vendor), virtualization type (KVM/ESXi), and physical firewall model, I can offer more detailed configuration breakdowns and optimization suggestions.
- Latest articles
- Hong Kong Native IP Ladder Websites Accelerate Cross-border Access To Film, Television, And Social Platforms
- Practical Sharing On Network Configuration For Hybrid Deployment Of Taiwan Native IP Virtual Machines And Physical Servers
- Guide To Unlocking Region-exclusive Content With Singapore Netflix VPS
- A Comparison Of Korean Native IP Search Website Features To Help You Choose The Right Tool
- Analysis Of Malaysian Server Supply Market Trends And Forecasts Of Popular Configuration Supply
- How To Measure High VPS Latency In Telecom Korea: Is It A Network Or Data Center Node Issue?
- Table Comparing The Reputation And After-sales Warranty Of The Cheapest VPS Service Providers In Taiwan
- The Purchasing Guide Teaches You How To Find Affordable And Compliant Configurations For High-defense Servers In The US Within A Limited Budget
- User Feedback Summary: Recommended Most Trusted SS Hong Kong CN2 VPS Service Providers
- Latency Testing And Best Practices For Xingtai VPS Hong Kong Servers For Gamers
- Popular tags
-
How To Choose A High-bandwidth Server In A Taiwan Site Cluster To Handle The Double Eleven-level Traffic Peak
For peak traffic during Double Eleven, it provides detailed explanations on how to select high-bandwidth servers, deploy CDN and high-protection DDoS, load balancing and domain name configuration for Taiwan clusters, and recommend reliable suppliers and purchase recommendations. -
From The Perspective Of Privacy Compliance, The Advantages Of Wechat Taiwan Server In Protecting User Data
analyze the advantages of deploying wechat servers in taiwan for "user data protection" from the perspective of privacy compliance, covering legal liability, technical protection, cross-border transmission and implementation suggestions. -
From The Network Operator's Perspective, What Should I Do If Taiwan's Server Is Stuck? How To Communicate With Isp To Optimize Link Quality?
from the perspective of network operators, this article analyzes common causes of server lag in taiwan, provides diagnostic steps, data and templates required for communication with isps, and feasible network optimization and alternatives to help improve link quality.